home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 551-575 / disk_562 / intuisup / library / source.lzh / libinit.c < prev    next >
C/C++ Source or Header  |  1991-10-19  |  2KB  |  98 lines

  1.         /*************************************
  2.          *                                   *
  3.          *       Intuition Support v2.0      *
  4.          *   by Torsten Jürgeleit in 05/91   *
  5.          *                                   *
  6.          *       Library init routines       *
  7.          *                                   *
  8.          *************************************/
  9.  
  10.     /* Includes */
  11.  
  12. #include <exec/types.h>
  13. #include <exec/nodes.h>
  14. #include "intuisup.h"
  15.  
  16.     /* Imports from startup code */
  17.  
  18. IMPORT struct Library  *LibOpen(VOID);
  19. IMPORT BPTR LibClose(VOID);
  20. IMPORT BPTR LibExpunge(VOID);
  21. IMPORT VOID LibNull(VOID);
  22.  
  23.     /* Library function table -> needed in DataTable of startup code */
  24.  
  25. VOID *FuncTable[] = {
  26.  
  27.     /* Standard system functions */
  28.  
  29.     LibOpen,
  30.     LibClose,
  31.     LibExpunge,
  32.     LibNull,
  33.  
  34.     /* Render functions */
  35.  
  36.     IGetRenderInfo,
  37.     IFreeRenderInfo,
  38.     IOpenWindow,
  39.     IClearRenderWindow,
  40.  
  41.     /* Text functions */
  42.  
  43.     IDisplayTexts,
  44.     IPrintText,
  45.     IConvertUnsignedDec,
  46.     IConvertSignedDec,
  47.     IConvertHex,
  48.     IConvertBin,
  49.  
  50.     /* Border functions */
  51.  
  52.     IDisplayBorders,
  53.     IDrawBorder,
  54.  
  55.     /* Gadget functions */
  56.  
  57.     ICreateGadgets,
  58.     IFreeGadgets,
  59.     IDisplayGadgets,
  60.     IRefreshGadgets,
  61.     ISetGadgetAttributes,
  62.     IActivateInputGadget,
  63.     IGadgetAddress,
  64.     IRemoveGadgets,
  65.     IGetMsg,
  66.     IReplyMsg,
  67.  
  68.     /* Menu functions */
  69.  
  70.     ICreateMenu,
  71.     IAttachMenu,
  72.     IMenuItemAddress,
  73.     IRemoveMenu,
  74.     IFreeMenu,
  75.  
  76.     /* End marker */
  77.  
  78.     (VOID *)-1
  79. };
  80.     /* Prototypes */
  81.  
  82. BOOL LibInit(VOID);
  83. VOID LibFree(VOID);
  84.  
  85.     /* Library specific init routine */
  86.  
  87.    BOOL
  88. LibInit(VOID)
  89. {
  90.    return((BOOL)TRUE);
  91. }
  92.     /* Library specific expunge routine */
  93.  
  94.    VOID
  95. LibFree(VOID)
  96. {
  97. }
  98.